GetFolderTypes
NEW WITH MAC OS 8
Gets the folder types from the global descriptor list.
pascal OSErr GetFolderTypes ( UInt32 requestedTypeCount, UInt32 *totalTypeCount, FolderType *theTypes);
requestedTypeCount
- On input, the number of folder types that can fit in the buffer pointed to by the
theTypes
parameter.totalTypeCount
- On output, a pointer to the total number of folder types in the list. The
totalTypeCount
parameter may produce a value that is larger or smaller than that of therequestedTypeCount
parameter. IftotalTypeCount
is equal to or smaller than the value passed in forrequestedTypeCount
and the value produced by thetheTypes
parameter is non-nil
, then all folder types were returned to the caller.theTypes
- On output, a pointer to a buffer containing a list of the folder types for the installed descriptors. You can step through the list and call
GetFolderDescriptor
for each folder type. You should usually pass a non-nil
pointer to a buffer; you might passnil
only if you wanted to know the number of descriptors installed in the system's global list, rather than the actual folder types of those descriptors.- function result
- A result code; see "Result Codes".
SPECIAL CONSIDERATIONS
Before calling theGetFolderType
function, you must pass the selectorgestaltFindFolderAttr
to theGestalt
function. If thegestaltFolderDescSupport
bit is set,GetFolderType
is available.